<?php

	if(!empty($_POST['email']) && !empty($_POST['name']) && !empty($_POST['message'])):
		include_once "common/inc/constants.inc.php";
		include_once "common/inc/class.mailbase.php";
		$e = trim($_POST['email']); 
		
		$mail = new MailBase(); 
		
		

        $from = trim($e);
		

       

        $headers = "Contact Message from ". $_POST['name'];
		


        $msg = $_POST['message'] ."<br/> Contacts Email: ". $from;
		$mail->sendMail("admin@comicblocks.com","admin@comicblocks.com", "Comicblocks", $headers, $msg);
		
		
		
		
		
	else:
		echo "Failed";
		endif;
	
?>